﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class addPlatformInfomation : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Infomation",
                columns: table => new
                {
                    Id = table.Column<long>(type: "bigint", nullable: false),
                    InfoTypeId = table.Column<int>(type: "int", nullable: true),
                    InfoTypeName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Title = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Content = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateUserId = table.Column<long>(type: "bigint", nullable: false),
                    CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
                    ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
                    ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Infomation", x => x.Id);
                });

            //migrationBuilder.CreateTable(
            //    name: "T_EquipmentBasic",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        TechnicalTerms = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
            //        ServiceIndustry = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
            //        StandardsProtocols = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
            //        ConceptualExplanation = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
            //        TechnologyCompany = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        Classification = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        ModelName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        SpecificationParameter = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        PerformanceIndex = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        UsageEnvironment = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        ApplicableScenarios = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        SupportingEquipment = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        MaintenanceRequirement = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        SpecificationModel = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_EquipmentBasic", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "T_ScrapOrder",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        OrderSn = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        Status = table.Column<int>(type: "int", nullable: false),
            //        Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        SubmitPeople = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_ScrapOrder", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "T_ScrapOrderDetail",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(type: "bigint", nullable: false),
            //        OrderSn = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        MaterialId = table.Column<int>(type: "int", nullable: false),
            //        MaterialName = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        Process = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        Status = table.Column<int>(type: "int", nullable: false),
            //        SubmitPeople = table.Column<string>(type: "nvarchar(max)", nullable: true),
            //        CreateUserId = table.Column<long>(type: "bigint", nullable: false),
            //        CreateUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        ModifyUserId = table.Column<long>(type: "bigint", nullable: false),
            //        ModifyUserName = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
            //        ModifyDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        IsDel = table.Column<bool>(type: "bit", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_T_ScrapOrderDetail", x => x.Id);
            //    });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Infomation");

            migrationBuilder.DropTable(
                name: "T_EquipmentBasic");

            migrationBuilder.DropTable(
                name: "T_ScrapOrder");

            migrationBuilder.DropTable(
                name: "T_ScrapOrderDetail");
        }
    }
}
